home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
NL.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
2KB
|
50 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef nl
#ifndef NDEBUG
char *rcsid_nl = "$Header: c:/curses/portable/RCS/nl.c%v 2.0 1992/11/15 03:29:04 MH Rel $";
#endif
/*man-start*********************************************************************
nl() - enable/disable newline control
X/Open Description: nl(), nonl()
These functions control whether a newline is translated into a
carriage return and a line-feed on output, and wether a return
is translated into a newline on input. Initially, the translations
do occur. By disabling these translations, curses is able to
make better use of the line-feed capability, resulting in faster
cursor motion.
NOTE: nl() and nonl() are macros.
PDCurses Description:
This module is not an executable, it is merely a documentation
place holder. This module will only execute code if the user
#undefs nl.
X/Open Return Value:
The nl() and nonl() functions return OK on success and ERR on error.
X/Open Errors:
No errors are defined for this function.
Portability:
PDCurses int mvprintw( int y, int x, char* fmt, ... );
X/Open Dec '88 int mvprintw( int y, int x, char* fmt, ... );
BSD Curses int mvprintw( int y, int x, char* fmt, ... );
SYS V Curses int mvprintw( int y, int x, char* fmt, ... );
**man-end**********************************************************************/
int nl(void)
{
_cursvar.autocr = TRUE;
return( OK );
}